//
//  Me2DayRequest.h
//  CairnStory
//  www.cairnstory.com
//
//  Created by saturna on 11. 3. 18..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Me2DayOAuthResult;


@protocol Me2DayRequestDelegate;


extern NSString* const Me2DayRequestMethodCreatePost;
extern NSString* const Me2DayRequestMethodGetPosts;
extern NSString* const Me2DayRequestMethodDeletePost;
//extern NSString* const Me2DayRequestMethodGetTags;

extern NSString* const Me2DayRequestMethodCreateComment;
extern NSString* const Me2DayRequestMethodGetComments;
extern NSString* const Me2DayRequestMethodDeleteComment;
extern NSString* const Me2DayRequestMethodTrackComments;

extern NSString* const Me2DayRequestMethodMeToo;
extern NSString* const Me2DayRequestMethodGetMeToos;

extern NSString* const Me2DayRequestMethodGetFriendshipRequests;
extern NSString* const Me2DayRequestMethodAcceptFriendshipRequest;
extern NSString* const Me2DayRequestMethodGetFriends;
extern NSString* const Me2DayRequestMethodFriendship;

extern NSString* const Me2DayRequestMethodGetPerson;
extern NSString* const Me2DayRequestMethodGetSettings;


@interface Me2DayRequest : NSObject
{
	Me2DayOAuthResult* m_oauth;
	NSMutableData* m_responseData;
	NSInteger m_responseCode;

	NSUInteger m_me2dayTag;
	id<Me2DayRequestDelegate,NSObject> m_delegate;
}

@property (nonatomic,assign) NSUInteger me2dayTag;
@property (nonatomic,assign) id<Me2DayRequestDelegate,NSObject> delegate;

- (id)initWithMe2DayOAuthResult:(Me2DayOAuthResult*)oauth;

- (void)requestWithMethodName:(NSString*)methodName
					andParams:(NSMutableDictionary*)params
				andHttpMethod:(NSString*)httpMethod
				 andMultipart:(BOOL)isMultipart;

- (void)requestWithMethodName:(NSString*)methodName
					andParams:(NSMutableDictionary*)params
				andHttpMethod:(NSString*)httpMethod;

- (void)requestWithMethodName:(NSString*)methodName
					andParams:(NSMutableDictionary*)params;

@end


